<template>
  <div class="listOut">
   <HeaderView />
   <div class="listMain">
     <div class="ListNav">
        <ListLeft @itemId="itemClick"/>
     </div>
     <div class="ListCont">
       <ListRight :myCid="myCid"/>
     </div>
   </div>
   <TabBar />
  </div>
</template>

<script>
import HeaderView from '@/components/HeaderView'
import TabBar from '@/components/tabBar/TabBar'
import ListLeft from './children/ListLeft.vue'
import ListRight from './children/ListRight.vue'
export default {
  data () {
    return {
      myCid: ''
    }
  },
  components: {
    HeaderView,
    TabBar,
    ListLeft,
    ListRight
  },
  methods: {
    itemClick (id) {
      this.myCid = id
    }
  }
}
</script>

<style lang="less" scoped>
.listMain{
  width: 100%;
  height: calc(100vh - 2rem);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  font-size: 0.3rem;
  .ListNav{
    width: 20%;
  }
  .ListCont{
    width: 80%;
  }
}
</style>
